package com.xiaoxin.demo;

/**
 * Created with IntelliJ IDEA.
 * Description:BOKD
 * User: 34321
 * Date: 2024-11-03
 * Time: 16:42
 */
public class Test {
    public class UnderGraduate {
        private int height;//身高
        private int weight;//体重
        public String gender;//性别
        public String specialty;//专业
        int classandgrade;//年级和班级 -->>default属性

        public UnderGraduate(int height, int weight, String gender, String specialty, int classandgrade) {
            this.height = height;
            this.weight = weight;
            this.gender = gender;
            this.specialty = specialty;
            this.classandgrade = classandgrade;
        }

        public void Sleep() {
            System.out.println("Slepp~~~~~~");
        }

        public void Forget() {
            System.out.println("Forget~~~~~~");
        }

        public void Eat() {
            System.out.println("Eat~~~~~~");
        }




    }
}
